<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@include file="/view/common/header-company.jspf" %>
<!-- 注册失败后的页面显示 -->
	<center>
		<h1>发布职位</h1>
	</center>
	<div class="container">
	<form class="form-horizontal" role="form"
		action="<%=request.getContextPath()%>/PositionServlet?command=addPosition" method="post" onsubmit="return validate();">
		<div class="form-group has-feedback">
				<label for="name" class="col-sm-2 control-label">职位名称</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="name" placeholder="name"
						name="name"> <span
						class="glyphicon glyphicon-remove form-control-feedback"></span>
				<ceneter><span class="label label-warning" id="nameInfo">${hasCode}</span></ceneter>
				</div>
			</div>
			
			<div class="form-group has-feedback">
				<label for="duty" class="col-sm-2 control-label">主要任务</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="duty"
						placeholder="duty" name="duty"> <span
						class="glyphicon glyphicon-remove form-control-feedback"></span>
				<ceneter><span class="label label-warning" id="dutyInfo">${pwdError}</span></ceneter>
				</div>
			</div>

			<div class="form-group has-feedback">
				<label for="ability" class="col-sm-2 control-label">能力要求</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="ability"
						placeholder="昵称" name="ability">
				<span class="glyphicon glyphicon-remove form-control-feedback"></span>
					<ceneter><span class="label label-warning" id="abilityInfo">${nameError}</span></ceneter>
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="salary1" class="col-sm-2 control-label">最低薪资</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="salary1"
						placeholder="salary1" name="salary1">
				<span class="glyphicon glyphicon-remove form-control-feedback"></span>
					<ceneter><span class="label label-warning" id="salary1Info">${nameError}</span></ceneter>
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="salary2" class="col-sm-2 control-label">最高薪资</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="salary2"
						placeholder="salary2" name="salary2">
				<span class="glyphicon glyphicon-remove form-control-feedback"></span>
					<ceneter><span class="label label-warning" id="salary2Info">${nameError}</span></ceneter>
				</div>
			</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">发布</button>
				 <input type="button" class="btn btn-primary" onclick="javascript:history.back();" value="返回"/>
			</div>
		</div>
	</form>
	</div>
	<script>

			/**
			*el获取是否修改成功信息(相当于request.getParameter(arg0))
			*/
			if('${param.updateSuccess}'){
				layer.msg('修改成功！',{icon:1});
			}
			if('${param.updateError}'){
				layer.msg('修改失败！',{icon:0});
			}
			
		</script>
</body>
<link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/img/favicon.ico"/>
</html>